package com.yootk.service.impl;

import com.yootk.dao.IDeptDao;
import com.yootk.service.IDeptService;
import com.yootk.vo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

// 业务层的注解
@Service
public class DeptServiceImpl implements IDeptService {

    @Autowired  // 实例的注入
    private IDeptDao deptDao;

    @Override
    public Dept get(Long deptno) {
        return deptDao.findById(deptno);
    }
}
